<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class lista_monedam extends CI_Model {

    public function __construct() {
        $this->load->database();
    }

    public function listarMonedas() {
        $query = "SELECT * from lista_moneda";
        return $this->db->query($query)->result();
    }

    public function getMoneda($id_moneda) {
        $query = "SELECT * from lista_moneda where id_moneda='$id_moneda'";
        return $this->db->query($query)->result();
    }

}